package com.system.reflect.demo02.impl;

import com.system.reflect.demo02.HelloWorld;

public class TestManyInterceptor {
    public static void main(String[] args) {
        HelloWorld proxy1 = (HelloWorld) InterceptorJdkProxy.bind(new HelloWorldImpl(), "com.system.reflect.demo02.impl.Interceptor1");
        HelloWorld proxy2 = (HelloWorld) InterceptorJdkProxy.bind(proxy1, "com.system.reflect.demo02.impl.Interceptor2");
        HelloWorld proxy3 = (HelloWorld) InterceptorJdkProxy.bind(proxy2, "com.system.reflect.demo02.impl.Interceptor3");
        proxy3.sayHelloWorld();

    }
}
